<%@ page import="com.nxmu.entity.ResearchEnter,java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="utf-8" />
    <title>教研室-评分结果</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/common.css"/>
    <style type="text/css">
        .content_box{
            width: 1200px;
            padding: 50px 0;
            border: none;
        }
        ul{
            width: 100%;
            list-style: none;
            overflow: hidden;
            margin: 0;
            padding: 0;
            border-right: 1px solid #aaa;
        }
        li{
            float: left;
            border-left: 1px solid #aaa;
            border-bottom: 1px solid #aaa;
            padding: 4px 0;
            text-align: center;
            width: 10%;
        }
        .table_title{
            border-top: 1px solid #aaa;
            font-weight: bold;
        }
        li:nth-child(2){
            width: 16%;
        }
        li:nth-child(3){
            width: 16%;
        }
        li:nth-child(6){
            width: 14%;
        }
        li:nth-child(8){
            width: 13%;
        }
        .edit{
            color: #5278F7;
        }
        .delete{
            color: #d88;
        }
    </style>
</head>
<body>
<h1 class="title">宁夏医科大学教学评分系统</h1>
<div class="content_box">
    <div style="margin-bottom: 20px;">
        <a href="page-research_entering" style="font-size:18px;">录入教师评分</a>
        <%
            request.setAttribute("reseName",request.getAttribute("list"));
        %>
    </div>
    <ul class="table_title">
        <li>教研室名称</li>
        <li>教师工号</li>
        <li>教师姓名</li>
        <li>教师性别</li>
        <li>教学态度及效果等级</li>
        <li>等级得分</li>
        <li>操作</li>
    </ul>
    <!--教师评分显示的列表-->
    <c:forEach items="${list}" var="l">
        <ul class="table_content">
            <li>${l.name}</li>
            <li>${l.teaId}</li>
            <li>${l.teaName}</li>
            <li>${l.sex eq 'FEMAN' ? '女' : '男'}</li>
            <%--<li>${l.grade}</li>--%>
            <c:if test="${l.grade eq 'G'}"><li>好</li></c:if>
            <c:if test="${l.grade eq 'RG'}"><li>比较好</li></c:if>
            <c:if test="${l.grade eq 'GE'}"><li>一般</li></c:if>
            <c:if test="${l.grade eq 'B'}"><li>有教学差错/事故</li></c:if>
            <li>${l.score}</li>
            <li>
                <a href="" class="edit">编辑</a>
                <a href="" class="delete">删除</a>
            </li>
        </ul>
    </c:forEach>
</div>
<s:debug></s:debug>
</body>
</html>
